package com.springboot.love.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * (admin)实体类
 */
@TableName(value = "admin")
public class AdminUser implements Serializable {
    private static final long serialVersionUID = 648780603149640962L;

    /**
     * 用户id
     */
    @Setter
    @Getter
    @TableId(value = "admin_id", type = IdType.AUTO)
    private Integer adminId;
    /**
     * 账号
     */
    @Setter
    @Getter
    @TableField(value = "username")
    private String username;
    /**
     * 密码
     */
    @Setter
    @Getter
    @TableField(value = "password")
    private String password;
    /**
     * 昵称
     */
    @Setter
    @Getter
    @TableField(value = "nickname")
    private String nickname;
    /**
     * 用户创建时间
     */
    @Setter
    @Getter
    @TableField(value = "admin_created_time")
    private Date adminCreatedTime;
    /**
     * 上一次登录时间
     */
    @Setter
    @Getter
    @TableField(value = "adminlast_login_time")
    private Date adminlastLoginTime;

    /**
     * 盐
     */
    @Setter
    @Getter
    @TableField(value = "salt")
    private String salt;
}
